<?php
// +----------------------------------------------------------------------
//            -------------------------
//           /   / ----------------\  \
//          /   /             \  \
//         /   /              /  /
//        /   /    /-------------- /  /
//       /   /    /-------------------\  \
//      /   /                   \  \
//     /   /                     \  \
//    /   /                      /  /
//   /   /      /----------------------- /  /
//  /-----/      /---------------------------/
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://baimifan.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 汪利东,2016-04-19 10:16
// +----------------------------------------------------------------------

namespace Delivery\Controller;


class IndexController extends BaseController
{
    public function __construct()
    {
        parent::__construct();

        $this->title = '待配送';
    }

    public function index()
    {
        $map = [
            'type'        => 1,
            'state_order' => 2,
            'man_id'      => session('delivery_man.man_id'),
        ];
        $data = D('DeliveryMy')->relation(true)->where($map)->select();

        $this->data = $data;


        $this->display();
    }
}